import java.util.Comparator;
import java.util.PriorityQueue;

/**
 * @author: gao
 * @create-date: 2025/3/6 22:58
 */
class BigTmp implements Comparator<Integer> {

    @Override
    public int compare(Integer o1, Integer o2) {
        return o2.compareTo(o1);
    }
}

public class Solution {
    public static void main(String[] args) {
        PriorityQueue<Integer> queue = new PriorityQueue<>(new BigTmp());
        queue.offer(10);
        queue.offer(5);
        System.out.println(queue.peek());
    }
}